package com.mlk.activity.api;

import com.mlk.activity.po.EngActivity;
import com.mlk.activity.service.EngActivityService;
import com.mlk.core.util.ServerResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/activity")
public class EngActivityApi {

    @Resource
    private EngActivityService engActivityService;

    /**
     * 活动信息查询
     */

    @GetMapping("listActivity")
    public ServerResponse listActivity(EngActivity engActivity){
        return this.engActivityService.listActivity(engActivity);
    }
}
